import api from "../index";
import request from "../../utils/request";

export function queryQuestionList(keyword) {
  const data = {
    keyword: keyword
  }
  return request({
    url:api.queryQuestionList,
    method:"post",
    data
  })
}


export function addQuestion (questionContent,questionType,optionContent) {
  const data = {
    questionContent: questionContent,
    questionType: questionType,
    optionContent: optionContent
  }
  return request({
    url: api.addQuestion,
    method: "post",
    data
  })
}

export function uploadQuestionData(formData){
  return request({
    url: api.uploadQuestionData,
    method: "post",
    data: formData
  })
}

export function getModelExcel(){
  return request({
    url:api.getModelExcel,
    method:"post",
    data: null
  })
}
